package com.zbkj.crmeb.store.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 订单购物物流表
 * </p>
 *
 * @author cyz
 * @since 2021-04-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_order_info_delivery")
@ApiModel(value="OrderInfoDelivery", description="订单购物物流表")
public class OrderInfoDelivery implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "orderInfo订单id")
    private Integer orderInfoId;

    @ApiModelProperty(value = "分段等级")
    private Integer level;

    @ApiModelProperty(value = "分段名称")
    private String name;

    @ApiModelProperty(value = "物流阶段， 1头程物流，2中转物流，3终端物流")
    private Integer logisticsStage;

    @ApiModelProperty(value = "物流公司")
    private String deliveryCompany;

    @ApiModelProperty(value = "物流单号")
    private String deliveryNumber;

    @ApiModelProperty(value = "快递编码")
    private String deliveryCode;

    @ApiModelProperty(value = "手机尾号4位")
    private String phone;

    @ApiModelProperty(value = "快递公司id")
    private Integer expressId;

    @ApiModelProperty(value = "操作平台(0总后台  1商家后台  2物流部门 3供应商)")
    private Integer channel;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "快递状态")
    private Integer status;
    @ApiModelProperty(value = "快递签收状态")
    private Integer signStatus;
    @ApiModelProperty(value = "快递公司联系方式")
    private String tel;
    @ApiModelProperty(value = "快递公司logo")
    private String logo;
    @ApiModelProperty(value = "API查询是否成功")
    private Boolean queryFlag;
    @ApiModelProperty(value = "最近API查询时间")
    private Date queryTime;
    @ApiModelProperty(value = "快递详情")
    private String data;

    @ApiModelProperty(value = "是否是兑换订单")
    private Boolean isExchange;

    @TableField(exist = false)
    @ApiModelProperty(value = "物流类型")
    private String logisticsTypeName;

    @TableField(exist = false)
    @ApiModelProperty(value = "物流方式  0：自行发货，1：平台物流（物流部门未操作），2：海外直邮，3：跨境转运")
    private Integer logisticsType;

}
